/**
 * 文件名称:ParasolSuport.java
 * 文件版权:ChinaParasol Technologies Co., Ltd. Copyright 1998-2020, All rights reserved
 * 文件描述:<描述>
 * 修改作者:LiXiangDong
 * 修改时间:Dec 31, 2012
 */
package com.parasol.hcerp.common.jdbc;

import java.util.List;

/**
 * 
 * @author  LiXiangDong
 * @version V1.0
 */
public class ParasolSQLSuport
{
    private IBatisSuport batisSuport = null;

    public IBatisSuport getBatisSuport()
    {
        return batisSuport;
    }

    public void setBatisSuport(IBatisSuport batisSuport)
    {
        this.batisSuport = batisSuport;
    }
    
    public List<?> queryForList(String statementName, Object parameterObject)
    {
        return batisSuport.getSqlMapClientTemplate().queryForList(statementName, parameterObject);
    }
    
    public List<?> queryForList(String statementName)
    {
        return batisSuport.getSqlMapClientTemplate().queryForList(statementName);
    }
    
    public Object queryForObject(String statementName)
    {
        return batisSuport.getSqlMapClientTemplate().queryForObject(statementName);
    }
    
    public Object queryForObject(String statementName, Object parameterObject)
    {
        return batisSuport.getSqlMapClientTemplate().queryForObject(statementName, parameterObject);
    }
    
    public Object insert(String statementName, Object parameterObject)
    {
        return batisSuport.getSqlMapClientTemplate().insert(statementName, parameterObject);
    }
    
    public int update(String statementName, Object parameterObject)
    {
        return batisSuport.getSqlMapClientTemplate().update(statementName, parameterObject);
    }
    
    public int delete(String statementName, Object parameterObject)
    {
        return batisSuport.getSqlMapClientTemplate().delete(statementName, parameterObject);
    }
    
}